package com.br.exemploThreadSala;

class RunBasicThread extends Object implements Runnable {
	char c;

	RunBasicThread(char c) {
		this.c = c;
	}

	// override run() method in interface
	public void run() {
		for (int i = 0; i < 100; i++) {
			System.out.print(c);

			try {
				Thread.sleep((int) (Math.random() * 10));
			} catch (InterruptedException e) {
				System.out.println("Interrupted Exception caught");
			}
		}
	}
}